import Vue from 'vue'
import Router from 'vue-router'
import PivotTable from './components/PivotTable'
import GantTu from './components/GantTu'
import EchartData from './components/EchartData'
import EditTable from './components/EditTable'
import OrgTree from './components/OrgTree'
import CusCalendar from './components/CusCalendar'
Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/index',
      name: 'index',
      component: PivotTable
    },
    {
      path: '/pivotTable',
      name: 'pivotTable',
      component: PivotTable
    },
    {
      path: '/gantTu',
      name: 'gantTu',
      component: GantTu
    },
    {
      path: '/echartData',
      name: 'echartData',
      component: EchartData
    },
    {
      path: '/editTable',
      name: 'editTable',
      component: EditTable
    },
    {
      path: '/orgTree',
      name: 'orgTree',
      component: OrgTree
    },
    {
      path: '/cusCalendar',
      name: 'cusCalendar',
      component: CusCalendar
    },
    {
      path: '*',
      redirect: '/pivotTable'
    }
  ]
})
export default router
